<?php

namespace app\user\validate;

use think\Validate;

class User extends Validate
{
    protected $rule = [
        'mobile'   => 'require|unique:user',
    ];

    protected $message = [
        'mobile.require'   => '手机号不能为空',
        'mobile.unique'    => '手机号已存在',
    ];
}
